// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addTeachingSchedule POST /api/teaching_schedule/add */
export async function addTeachingScheduleUsingPost(
  body: API.TeachingScheduleAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/teaching_schedule/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteTeachingSchedule POST /api/teaching_schedule/delete */
export async function deleteTeachingScheduleUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/teaching_schedule/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getTeachingScheduleById GET /api/teaching_schedule/get */
export async function getTeachingScheduleByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTeachingScheduleByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseTeachingSchedule_>('/api/teaching_schedule/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listTeachingSchedule POST /api/teaching_schedule/list */
export async function listTeachingScheduleUsingPost(
  body: API.TeachingScheduleQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListTeachingSchedule_>('/api/teaching_schedule/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listTeachingScheduleByPage POST /api/teaching_schedule/list/page */
export async function listTeachingScheduleByPageUsingPost(
  body: API.TeachingScheduleQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageTeachingSchedule_>('/api/teaching_schedule/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateTeachingSchedule POST /api/teaching_schedule/update */
export async function updateTeachingScheduleUsingPost(
  body: API.TeachingScheduleUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/teaching_schedule/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
